package com.duofan.gmall.ware.feign;

import com.duofan.gmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gmall-product")
public interface ProductFeignService {
    // 可以所有请求过网关,也可以微服务间调用
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);
}
